home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mgr / sparcmgr / demo2.zoo / demo / ex / ex_argv.h < prev    next >
Encoding:
C/C++ Source or Header  |  1987-04-24  |  1.0 KB  |  36 lines

  1. /*
  2.  * Copyright (c) 1980 Regents of the University of California.
  3.  * All rights reserved.  The Berkeley software License Agreement
  4.  * specifies the terms and conditions for redistribution.
  5.  *
  6.  *    @(#)ex_argv.h    7.3 (Berkeley) 5/31/85
  7.  *    @(#)ex_argv.h    1.2 (Bellcore)    87/04/24
  8.  */
  9.  
  10. /*
  11.  * The current implementation of the argument list is poor,
  12.  * using an argv even for internally done "next" commands.
  13.  * It is not hard to see that this is restrictive and a waste of
  14.  * space.  The statically allocated glob structure could be replaced
  15.  * by a dynamically allocated argument area space.
  16.  */
  17. var char    **argv;
  18. var char    **argv0;
  19. var char    *args;
  20. var char    *args0;
  21. var short    argc;
  22. var short    argc0;
  23. var short    morargc;        /* Used with "More files to edit..." */
  24.  
  25. var int    firstln;        /* From +lineno */
  26. var char    *firstpat;        /* From +/pat    */
  27.  
  28. /* Yech... */
  29. struct    glob {
  30.     short    argc;            /* Index of current file in argv */
  31.     short    argc0;            /* Number of arguments in argv */
  32.     char    *argv[NARGS + 1];    /* WHAT A WASTE! */
  33.     char    argspac[NCARGS + sizeof (int)];
  34. };
  35. var struct    glob frob;
  36.